package com.note.simpleshop.module.goods.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.note.simpleshop.entity.TbGoods;
import java.io.Serializable;
import java.sql.Timestamp;
public class GoodsVo implements Serializable {
    private String id;
    private String name;
    private String intro;
    private String detail;
    private String classifyId;
    private String brandId;
    private String paramters;
    private Integer sale;
    @JsonIgnore
    private Integer isDelete;
    private String columnId;
    @JsonIgnore
    private Timestamp createTime;
    @JsonIgnore
    private Integer automatic;
    @JsonIgnore
    private Timestamp automaticTime;
    private String pics;
    private Integer sort;

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    private String thumbnail;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(String classifyId) {
        this.classifyId = classifyId;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getParamters() {
        return paramters;
    }

    public void setParamters(String paramters) {
        this.paramters = paramters;
    }

    public Integer getSale() {
        return sale;
    }

    public void setSale(Integer sale) {
        this.sale = sale;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getColumnId() {
        return columnId;
    }

    public void setColumnId(String columnId) {
        this.columnId = columnId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getAutomatic() {
        return automatic;
    }

    public void setAutomatic(Integer automatic) {
        this.automatic = automatic;
    }

    public Timestamp getAutomaticTime() {
        return automaticTime;
    }

    public void setAutomaticTime(Timestamp automaticTime) {
        this.automaticTime = automaticTime;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public static GoodsVo copy(TbGoods tbGoods)
    {
        GoodsVo goodsVo=new GoodsVo();
        goodsVo.id=tbGoods.getId();
        goodsVo.name=tbGoods.getName();
        goodsVo.intro=tbGoods.getIntro();
        goodsVo.detail=tbGoods.getDetail();
        goodsVo.classifyId=tbGoods.getClassifyId();
        goodsVo.brandId=tbGoods.getBrandId();
        goodsVo.paramters=tbGoods.getParamters();
        goodsVo.sale=tbGoods.getSale();
        goodsVo.isDelete=tbGoods.getIsDelete();
        goodsVo.columnId=tbGoods.getColumnId();
        goodsVo.createTime=tbGoods.getCreateTime();
        goodsVo.automatic=tbGoods.getAutomatic();
        goodsVo.automaticTime=tbGoods.getAutomaticTime();
        goodsVo.pics=tbGoods.getPics();
        goodsVo.sort=tbGoods.getSort();
        goodsVo.thumbnail=tbGoods.getThumbnail();
        return goodsVo;
    }
}
